const { Schema } = require('../conn/conn')

// 定义Schema
module.exports = new Schema({
  username: {
    type: String,
    minlength: 2,
    required: true
  },
  password: {
    type: String,
    required: true,
    minlength: 2
  },
  email: String,
  age: {
    type: Number,
    default: 10
  },
  hobbies: [String]
})